package com.gxa.exception;

/**
 * Created by zxd on 2020/11/16
 **/
public enum MessageCode {

    ERROR(50000, "对不起，系统开小差了!"),
    ID_EMPTY(50001, "id不能为空!"),
    USERNAME_EMPTY(50002, "用户名不能为空!"),
    GOODS_STATUS(50003, "不能乱传商品状态哦!"),
    CATEGORY_NOT_EXITS(50004, "商品分类不存在!"),
    BANNER_INDEX_QUANTITY(50005, "首页轮播数量有问题!"),
    GOOODS_IS_EMPTY(50006, "商品不存在!"),
    LOGIN_SMS_EXPIRE(50007, "手机验证码失效!"),
    LOGIN_SMS_ERROR(50008, "手机验输入错误!"),
    USER_NO(50009, "对不起，账户不能登录"),
    TOKEN_NO(50010, "无效token"),
    LOGIN_EMPTY(50011, "登录错误"),
    PASSWORD_EMPTY(50015, "密码不能为空！"),
    ROOM(50017,"房型不存在"),
    HOTEL(50018,"酒店不存在"),
    VALIDATE_PAGE(500016,"非法页码");


    //错误编码
    private Integer code;

    //错误信息
    private String message;

    MessageCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
